package demo30;

import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        ArrayList<Integer> a=new ArrayList();
        int t;
        while (sr.hasNext()){
            t=sr.nextInt();
            if(t==0){
                a.add(t);
                break;
            }
            a.add(t);
        }
        int max=a.get(0);
        for (int i = 0; i < a.size(); i++) {
            if(max<a.get(i)){
                max=a.get(i);
            }
        }
        int n=0;
        for (int i = 0; i < a.size(); i++) {
            if(max==a.get(i)){
                n++;
            }
        }
        System.out.println("The largest number is "+(max+""));
        System.out.println("The occurrence count of the largest number is "+(n+""));
    }
}

